(function($, doc) {
	$.init();
	$.plusReady(function() {
		var etype = plus.webview.currentWebview().etype;
		//console.log(etype);
		var user = app.getState();
		var myWallet = ethscan.getWallet(etype);
		var address = myWallet.address;
		var privkey = myWallet.privkey;
		doc.getElementById('address').value = address;
		doc.getElementById('privkey').value = privkey;
		var clipboard = new Clipboard('.mui-btn-block', {
			// 通过target指定要复印的节点
			text: function() {
				return address;
			}
		});
		clipboard.on('success', function(e) {
			console.log(JSON.stringify(e));
			mui.toast("已复制钱包地址");
		});
		var clipboard1 = new Clipboard('.mui-btn-danger', {
			// 通过target指定要复印的节点
			text: function() {
				return privkey;
			}
		});
		clipboard1.on('success', function(e) {
			console.log(JSON.stringify(e));
			mui.toast("已复制私钥");
		});
	});
}(mui, document));